/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="MEDICTOSDILUENTES")
public class MedictosDiluentesProteu implements Serializable{

    @Id
    @Column(name="MDD_IN_CODIGO")
    private Integer mddInCodigo;
    @Column(name="MDD_ST_DESCRICAO")
    private String mddStDescricao;
    @Column(name="BIP_ST_MED_COD_TISS")
    private String bipStMedCodTiss;
    @Column(name="UNM_ST_CODIGO")
    private String unmStCodigo;
    @Column(name="USU_IN_CODIGO")
    private Integer usuInCodigo;
    @Column(name="MDD_DT_ALTERACAO")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date mddDtAlteracao;


    public String getBipStMedCodTiss() {
        return bipStMedCodTiss;
    }

    public void setBipStMedCodTiss(String bipStMedCodTiss) {
        this.bipStMedCodTiss = bipStMedCodTiss;
    }

    public Date getMddDtAlteracao() {
        return mddDtAlteracao;
    }

    public void setMddDtAlteracao(Date mddDtAlteracao) {
        this.mddDtAlteracao = mddDtAlteracao;
    }

    public Integer getMddInCodigo() {
        return mddInCodigo;
    }

    public void setMddInCodigo(Integer mddInCodigo) {
        this.mddInCodigo = mddInCodigo;
    }

    public String getMddStDescricao() {
        return mddStDescricao;
    }

    public void setMddStDescricao(String mddStDescricao) {
        this.mddStDescricao = mddStDescricao;
    }

    public String getUnmStCodigo() {
        return unmStCodigo;
    }

    public void setUnmStCodigo(String unmStCodigo) {
        this.unmStCodigo = unmStCodigo;
    }

    public Integer getUsuInCodigo() {
        return usuInCodigo;
    }

    public void setUsuInCodigo(Integer usuInCodigo) {
        this.usuInCodigo = usuInCodigo;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final MedictosDiluentesProteu other = (MedictosDiluentesProteu) obj;
        if (this.mddInCodigo != other.mddInCodigo && (this.mddInCodigo == null || !this.mddInCodigo.equals(other.mddInCodigo))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 59 * hash + (this.mddInCodigo != null ? this.mddInCodigo.hashCode() : 0);
        return hash;
    }



}
